import { wrap } from 'svelte-spa-router/wrap'

import Layout from '@/Layout/index.svelte'
import Loading from '@/components/Loading/index.svelte'
import NotFound from '@/views/NotFound/index.svelte'

export const routes = {
  '/*': wrap({
    component: Layout,
    loadingComponent: Loading,
    userData: {
      title: '首页'
    }
  }),
  '*': wrap({
    component: NotFound,
    userData: {
      title: '404'
    }
  })
}
